import App from './App'
import popup from '@/components/popup.vue'


// #ifndef VUE3
import Vue from 'vue'
import { store } from './store';
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.prototype.$store = store
// 全局注册 popup 组件
Vue.component('popup', popup);
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import store from './store'
import uviewPlus, { setConfig } from '@/uni_modules/uview-plus'
export function createApp() {
	const app = createSSRApp(App)
	app.use(store);
	app.use(uviewPlus) 
	// 注册全局组件
	app.component('popup', popup);
	return {
		app,
	}
}
// #endif